import $http from "./requst";
// 首页数据
export const technicianuser = data =>
  $http({ url: "/technicianuser", method: "post", data });
// 套餐详情
export const details = data =>
  $http({ url: "/technicianuser/Package/details", method: "post", data });
// 选择技师
export const checkTechnician = data =>
  $http({
    url: "/technicianuser/Package/checkTechnician",
    method: "post",
    data
  });
// 下单预约提交
export const orderSub = data =>
  $http({
    url: "/technicianuser/Reservation/save",
    method: "post",
    data
  });
// 立即购买
export const orderSave = data =>
  $http({
    url: "/technicianuser/Reservation/orderSave  ",
    method: "post",
    data
  });
// 立即购买
export const order = data =>
  $http({
    url: "/technicianuser/Order",
    method: "post",
    data
  });
// 技师列表
export const Technician = data =>
  $http({
    url: "/technicianuser/Technician",
    method: "post",
    data
  });
// 选择套餐
export const checkPackage = data =>
  $http({
    url: "/technicianuser/Technician/checkPackage",
    method: "post",
    data
  });
// 收藏技师
export const collect = data =>
  $http({
    url: "/technicianuser/Technician/collect",
    method: "post",
    data
  });
// 取消收藏
export const canceCollect = data =>
  $http({
    url: "/technicianuser/Technician/canceCollect",
    method: "post",
    data
  });

// 个人中心
export const my = data =>
  $http({
    url: "/technicianuser/My",
    method: "post",
    data
  });
// 关于我们
export const about = data =>
  $http({
    url: "/technicianuser/My/about",
    method: "post",
    data
  });
// 订单列表
export const orderList = data =>
  $http({
    url: "/technicianuser/Order",
    method: "post",
    data
  });
// 订单详情
export const orderDetails = data =>
  $http({
    url: "/technicianuser/Order/orderDetails",
    method: "post",
    data
  });

// 订单取消
export const orderCancel = data =>
  $http({
    url: "/technicianuser/Order/orderCancel",
    method: "post",
    data
  });
// 订单支付
export const orderPay = data =>
  $http({
    url: "/technicianuser/Order/orderPay",
    method: "post",
    data
  });
// 微信分享
export const Wechatshare = data =>
  $http({
    url: "/common/Wechatshare",
    method: "post",
    data
  });
// 删除订单
export const orderDel = data =>
  $http({
    url: "/technicianuser/Order/orderDel",
    method: "post",
    data
  });
// 是否关注
export const is_gz = data =>
  $http({
    url: "/technicianuser/index/is_gz",
    method: "post",
    data
  });
// 消费记录
export const Rechargerecord = data =>
  $http({
    url: "/technicianuser/My/bill",
    method: "post",
    data
  });
// 收藏记录
export const collectList = data =>
  $http({
    url: "/technicianuser/My/collect",
    method: "post",
    data
  });
//取消订单消息提示
export const orderCancelMsg = data =>
  $http({
    url: "/technicianuser/Order/orderCancelMsg",
    method: "post",
    data
  });
//评价订单
export const orderEvaluate = data =>
  $http({
    url: "/technicianuser/Order/orderEvaluate",
    method: "post",
    data
  });
//评价列表
export const evaluate = data =>
  $http({
    url: "/technicianuser/Package/evaluate",
    method: "post",
    data
  });
//订单举报
export const orderReport = data =>
  $http({
    url: "/technicianuser/Order/orderReport",
    method: "post",
    data
  });

//加钟
export const jzOrder = data =>
  $http({
    url: "/technicianuser/Order/jzOrder",
    method: "post",
    data
  });
